﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using RTSDK;

namespace DeviceSDK.Park
{
    public class ParkHandler
    {
        public delegate void OnCarArriveGateHandler(string ip, CarInfo car);
        public static event OnCarArriveGateHandler OnCarArriveGateEvent;


        public delegate void OnCarArriveRoadHandler(string ip, CarInfo car);
        public static event OnCarArriveRoadHandler OnCarArriveRoadEvent;

        public static void OnCarArriveGate(string ip, CarInfo car)
        {
            if (OnCarArriveGateEvent != null)
                OnCarArriveGateEvent(ip, car);
        }

        public static void OnCarArriveRoad(string ip,CarInfo car)
        {
            if (OnCarArriveRoadEvent != null)
                OnCarArriveRoadEvent(ip, car);
        }


    }
}
